// 引入 创建store的模块和将不同reducer合并的模块
import { createStore, combineReducers, applyMiddleware } from "redux";
// 引入异步的中间件
import reduxThunk from "redux-thunk";
// 引入reducers
import TopicReducer from "./reducer/TopicReducer";
import SettingReducer from "./reducer/SettingReducer";

// 创建一个仓库
export default createStore(
  combineReducers({
    TopicReducer,
    SettingReducer,
  }),
  applyMiddleware(reduxThunk)
);
